import Home from "../views/Home.jsx"
import Classify from "../views/Classify.jsx"
import Car from "../views/Car.jsx"
import Info from "../views/Info.jsx"
import Cinfo from "../views/Cinfo.jsx"
import Tabbars from "../views/Tabbars.jsx"
import { Navigate } from "react-router-dom"
const router = [
    {
        path: "/home",
        element: <Home />
    },
    {
        path: "/classify",
        element: <Classify />
    },
    {
        path: "/car",
        element: <Car />
    },
    {
        path: "/info/:id",
        element: <Info></Info>
    },
    {
        path: "/cinfo",
        element: <Cinfo></Cinfo>
    },
    {
        path: "/tabbars/:id",
        element: <Tabbars></Tabbars>
    },
    {
        path: "/",
        element: <Navigate to="/classify"></Navigate>
    },
]
export default router;